package com.cloudlead.plugin.security.service;

import java.util.List;

import com.cloudlead.common.lang.service.CrudService;
import com.cloudlead.plugin.security.vo.ScResource;
import com.cloudlead.plugin.security.vo.ScUser;
import com.cloudlead.common.lang.annotation.Label;

/**
 * ScUserService is a Codegen service interface type
 */
@Label("用户服务")
public interface ScUserService extends CrudService<ScUser> {
    /**
     * 用户的权限列表
     *
     * @param username
     * @param group
     * @return
     */
    List<String> findPrivileges(String username, String group);

    /**
     * 用户的角色列表
     *
     * @param username
     * @param group
     * @return
     */
    List<String> findRoles(String username, String group);

    /**
     * 用户所在的组
     *
     * @param username
     * @return
     */
    List<String> findGroups(String username);

}
